package com.xhj.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xhj.entity.Permission;

import java.util.List;

/**
 * 权限(Permission)表服务接口
 *
 * @author makejava
 * @since 2021-03-15 12:26:24
 */
public interface PermissionService extends IService<Permission> {


    List<Permission> queryAllMenu();

    void removeMenu(String id);

    void saveRolePermissionRelationShip(String roleId, String[] permissionId);

    List<String> selectPermissionValueByUserId(String id);

    List<Permission> queryMenuByRoleId(String roleId);

    List<JSONObject> getMenuByUserName(String username);
}